package com.fivefu.core.hik.dto.response;

import com.fivefu.core.hik.entity.DbHikDevice;
import io.swagger.annotations.ApiModelProperty;

/**
 * 查询编码设备列表v2返回信息
 */
public class EncodeDeviceSearchResult {

    @ApiModelProperty(value = "所属服务编号")
    private String belongIndexCode;

    @ApiModelProperty(value = "编码设备能力集")
    private String capability;

    @ApiModelProperty(value = "设备驱动")
    private String deviceKey;

    @ApiModelProperty(value = "设备系列")
    private String deviceType;

    @ApiModelProperty(value = "设备序列号")
    private String devSerialNum;

    @ApiModelProperty(value = "主动设备编号")
    private String deviceCode;

    @ApiModelProperty(value = "资源唯一编码")
    private String indexCode;

    @ApiModelProperty(value = "厂商")
    private String manufacturer;

    @ApiModelProperty(value = "资源名称")
    private String name;

    @ApiModelProperty(value = "所属区域")
    private String regionIndexCode;

    @ApiModelProperty(value = "所属区域路径，由唯一标示组成，最大10级，格式： @根节点@子区域1@子区域2@")
    private String regionPath;

    @ApiModelProperty(value = "资源类型")
    private String resourceType;

    @ApiModelProperty(value = "接入协议")
    private String treatyType;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    public String getBelongIndexCode() {
        return belongIndexCode;
    }

    public void setBelongIndexCode(String belongIndexCode) {
        this.belongIndexCode = belongIndexCode;
    }

    public String getCapability() {
        return capability;
    }

    public void setCapability(String capability) {
        this.capability = capability;
    }

    public String getDeviceKey() {
        return deviceKey;
    }

    public void setDeviceKey(String deviceKey) {
        this.deviceKey = deviceKey;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDevSerialNum() {
        return devSerialNum;
    }

    public void setDevSerialNum(String devSerialNum) {
        this.devSerialNum = devSerialNum;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getIndexCode() {
        return indexCode;
    }

    public void setIndexCode(String indexCode) {
        this.indexCode = indexCode;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRegionIndexCode() {
        return regionIndexCode;
    }

    public void setRegionIndexCode(String regionIndexCode) {
        this.regionIndexCode = regionIndexCode;
    }

    public String getRegionPath() {
        return regionPath;
    }

    public void setRegionPath(String regionPath) {
        this.regionPath = regionPath;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getTreatyType() {
        return treatyType;
    }

    public void setTreatyType(String treatyType) {
        this.treatyType = treatyType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }


    public DbHikDevice replaceDbHikDevice() {
        DbHikDevice device = new DbHikDevice();
        device.setCapability(this.getCapability());//编码设备能力集
        device.setDeviceKey(this.getDeviceKey());//设备驱动
        device.setDeviceType(this.getDeviceType());//设备系列
        device.setDevSerialNum(this.getDevSerialNum());//设备序列号
        device.setDeviceCode(this.getDeviceCode());//主动设备编号
        device.setIndexCode(this.getIndexCode());//资源唯一编码
        device.setManufacturer(this.getManufacturer());//厂商
        device.setName(this.getName());//资源名称
        device.setResourceType(this.getResourceType());//资源类型
        device.setTreatyType(this.getTreatyType());//接入协议
        device.setCreateTime(this.getCreateTime());//创建时间
        device.setUpdateTime(this.getUpdateTime());//更新时间
        //device.setIsDelete(0);//是否删除0否1是
        return device;
    }
    @Override
    public String toString() {
        return "EncodeServiceSearchResult{" +
                "belongIndexCode='" + belongIndexCode + '\'' +
                ", capability='" + capability + '\'' +
                ", deviceKey='" + deviceKey + '\'' +
                ", deviceType='" + deviceType + '\'' +
                ", devSerialNum='" + devSerialNum + '\'' +
                ", deviceCode='" + deviceCode + '\'' +
                ", indexCode='" + indexCode + '\'' +
                ", manufacturer='" + manufacturer + '\'' +
                ", name='" + name + '\'' +
                ", regionIndexCode='" + regionIndexCode + '\'' +
                ", regionPath='" + regionPath + '\'' +
                ", resourceType='" + resourceType + '\'' +
                ", treatyType='" + treatyType + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}
